{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 资产管理
    <span class="c-gray en">&gt;</span> 九宫抽奖记录
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="/money/record_awards" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
    <form  method="get" action="">
        <div class="text-c">
            <input type="text" class="input-text" style="width:250px" placeholder="UID|SN|订单id" value="{:input('word')}" name="word">
            <button type="submit" class="btn btn-success">搜索</button>
        </div>
    </form>

    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
        </span>
        <span class="r">共有数据：<strong>{$list->total()}</strong> 条</span> </div>
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
        <tr>
            <th scope="col" colspan="10">九宫格抽奖记录</th>
        </tr>
        <tr class="text-c">
            <th width="30">标识</th>
            <th width="80">用户</th>
            <th width="50">订单标识</th>
            <th width="50">订单编号</th>
            <th width="50">奖品标识</th>
            <th width="50">中奖类型</th>
            <th width="50">随机数</th>
            <th width="80">创建时间</th>
            <th width="80">抽奖时间</th>
            <th width="80">过期时间</th>
        </tr>
        </thead>
        <tbody>
        {foreach $list as $v}
        <tr class="text-c">
            <td>{$v.id}</td>
            <td>{$v.uid}</td>
            <td>{$v.oid}</td>
            <td>{$v.sn}</td>
            <td>{$v.award_id}</td>
            <td>{switch name="$v.type"}
                {case value="1"}MT{/case}
                {case value="2"}兑换券{/case}
                {case value="3"}资产包{/case}
                {case value="4"}谢谢惠顾{/case}
                {default /}--
                {/switch}</td>
            <td>{$v.random_num}</td>
            <td>{$v.time}</td>
            <td>{$v.update_time}</td>
            <td>{$v.out_time}</td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    <div class="page">
        {$list->render()|raw}
    </div>
</div>

{include file="public/footer" /}